
public class Button{
	public static final int KEY_DOWN=1;
	public static final int KEY_UP=2;
	private Listener lisn;
	public void setListener(Listener lisn){
		this.lisn=lisn;
	}
	public void onPress(int state){
		lisn.getState(state);
	}
}
